<ul class="mostread">
    <?php foreach($pages_newest as $key => $value): ?>
    <li class="mostread"><a class="mostread" href="<?php echo $value->url_friendly.'.html';?>" title="<?php echo $value->title;?>"><?php echo $value->title;?></a></li>
    <?php endforeach;?>
</ul>
